package com.simple.dispatcher;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;

public class DispatchServer {

	
	public static void main(String[] args) throws Exception {
		
		System.setProperty("weibo4j.oauth.consumerKey", "3547868149");
    	System.setProperty("weibo4j.oauth.consumerSecret", "bb914fa724f0a8ec9caa7c9ab162dd58");
		Server server = new Server(8088);
		
		WebAppContext context = new WebAppContext();
		
		context.setResourceBase("./webapp");
		context.setContextPath("/");
		server.setHandler(context);
		
		server.start();
		server.join();
	}
}
